package com.job.common.DTO;

import java.util.List;

/**
 * @author songsong
 * @version 1.0
 * @date 2022/12/28 10:33
 **/
public class JobFlowDTO {
    private int id;//主键
    private String nodes;//节点
    private String edges;//连线
    private List<String> removeIds;//需要移除的节点集合
    private NodeJobDTO nodeJobDTO;//需要添加的节点信息

    public static class edge {
        private String ConnectionId;
        private String PageSourceId;
        private String PageSourceAnchor;
        private String PageTargetId;
        private String PageTargetAnchor;

        public String getConnectionId() {
            return ConnectionId;
        }

        public void setConnectionId(String connectionId) {
            ConnectionId = connectionId;
        }

        public String getPageSourceId() {
            return PageSourceId;
        }

        public void setPageSourceId(String pageSourceId) {
            PageSourceId = pageSourceId;
        }

        public String getPageSourceAnchor() {
            return PageSourceAnchor;
        }

        public void setPageSourceAnchor(String pageSourceAnchor) {
            PageSourceAnchor = pageSourceAnchor;
        }

        public String getPageTargetId() {
            return PageTargetId;
        }

        public void setPageTargetId(String pageTargetId) {
            PageTargetId = pageTargetId;
        }

        public String getPageTargetAnchor() {
            return PageTargetAnchor;
        }

        public void setPageTargetAnchor(String pageTargetAnchor) {
            PageTargetAnchor = pageTargetAnchor;
        }
    }

    public static class node {
        String BlockClass;
        String BlockContent;
        String BlockId;
        String BlockJnode;
        int blockX;
        int blockY;

        public String getBlockClass() {
            return BlockClass;
        }

        public void setBlockClass(String blockClass) {
            BlockClass = blockClass;
        }

        public String getBlockContent() {
            return BlockContent;
        }

        public void setBlockContent(String blockContent) {
            BlockContent = blockContent;
        }

        public String getBlockId() {
            return BlockId;
        }

        public void setBlockId(String blockId) {
            BlockId = blockId;
        }

        public String getBlockJnode() {
            return BlockJnode;
        }

        public void setBlockJnode(String blockJnode) {
            BlockJnode = blockJnode;
        }

        public int getBlockX() {
            return blockX;
        }

        public void setBlockX(int blockX) {
            this.blockX = blockX;
        }

        public int getBlockY() {
            return blockY;
        }

        public void setBlockY(int blockY) {
            this.blockY = blockY;
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNodes() {
        return nodes;
    }

    public void setNodes(String nodes) {
        this.nodes = nodes;
    }

    public String getEdges() {
        return edges;
    }

    public void setEdges(String edges) {
        this.edges = edges;
    }

    public List<String> getRemoveIds() {
        return removeIds;
    }

    public void setRemoveIds(List<String> removeIds) {
        this.removeIds = removeIds;
    }

    public NodeJobDTO getNodeJobDTO() {
        return nodeJobDTO;
    }

    public void setNodeJobDTO(NodeJobDTO nodeJobDTO) {
        this.nodeJobDTO = nodeJobDTO;
    }
}
